package com.ericsson.enap.modules.ebmLog.entity.vgc.amf;

import com.ericsson.enap.modules.ebmLog.entity.vgc.VgcEbmCcScc;
import lombok.Data;

import java.util.Objects;

/**
 * @description:
 * @author: wangjingshi
 * @create: 2021-11-13 19:37
 */
@Data
public class HandoverCcScc extends VgcEbmCcScc {

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HandoverCcScc t = (HandoverCcScc) o;
        /*if(cause_code==null||sub_cause_code==null||dnn==null||n_handover_type==null){
            System.out.println(t);
        }*/
        return cause_code.equals(t.cause_code) && sub_cause_code.equals(t.sub_cause_code) &&
                dnn.equals(t.dnn) && n_handover_type.equals(t.n_handover_type);
    }


    @Override
    public int hashCode() {
        return Objects.hash(cause_code,sub_cause_code,dnn,n_handover_type);
    }


    /*@Override
    public String toString() {
        return "HandoverCcScc{" +
                "cause_code=" + cause_code +
                ", sub_cause_code=" + sub_cause_code +
                ", dnn=" + dnn +
                ", n_handover_type=" + n_handover_type +
                '}';
    }*/
}
